#include "tcp_client_test.h"
#include <signal.h>
void sighandle(int sig) { std::cout << "signal no is " << sig << std::endl; }
int main(int argc, char *argv[]) {
  sdx::TcpClient tcpClient;
  tcpClient.createSocket();
  tcpClient.setserverAddr();
  tcpClient.connect2server();
  while (true) {
    int sendStatus = tcpClient.sendMessage();
    if (sendStatus == 1) {
      break;
    }
    tcpClient.recvMessage();
  }
  tcpClient.closeSocket();
}